#!/bin/bash

apt install -y git zsh

cd /tmp
wget https://gitee.com/zfwl666/ohmyzsh/raw/master/install/install.sh
chmod a+x ./install.sh
./install.sh -y

git clone https://jihulab.com/hemiao/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://jihulab.com/hemiao/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

sed -i "s/\"robbyrussell\"/\"gnzh\"/g" ~/.zshrc
sed -i "s/(git)/(git zsh-syntax-highlighting zsh-autosuggestions)/g" ~/.zshrc
source ~/.zshrc

rm -rf /tmp/install.sh


